package com.hut.bms.service;

import com.hut.bms.mapper.BookInfoMapper;
import com.hut.bms.model.BookInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InsertBookService {
    @Autowired
    private BookInfoMapper bookInfoMapper;
    public Integer addBookByBookInfo(BookInfo bookInfo) {
        return bookInfoMapper.insertByBookInfo(bookInfo);
    }
}
